<template>
<div class="header">
    <slot name="login"></slot><span>首页</span><slot name="register"></slot>
</div>
</template>
<script>
export default {
data() {
return {};
},
computed: {},
watch: {},
methods: {},
created() {},
mounted() {},
components: {},
};
</script>
<style scoped>
.header {
  position: relative;
  height: 40px;
  line-height: 40px;
  text-align: center;
  background: red;
  color: #fff;
}
.header .login,
.header .register {
  width: 2em;
  position: absolute;
  left: 0;
  top: 0;
  height: 40px;
  line-height: 40px;
}
.header .register {
  left: auto;
  right: 0;
}
</style>